//根据fun1返回值来执行func2 尝试max_count次数，延时时间为time_毫秒
var ttime2=function(func1,func2,func1_lst=[],func2_lst=[],max_ccount=50,ccount=0,time_=50){

  if (ccount==0){time_=0}
  if (ccount<max_ccount){
              ccount=ccount+1;
              setTimeout(function() {
              let p = func1(...func1_lst);
              
              // console.log('((((p ttime2',p)
              if (p!=false &&p!=null){
                // console.log('((((func2_lst ttime2',func2_lst)
                func2(...func2_lst)
              }else{
                ttime2(func1,func2,func1_lst,func2_lst,max_ccount,ccount,time_)
              }
              
          }, time_);
              }}